package com.lc.soft.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
public class DistrictNestingEntity extends DistrictEntity {

    public DistrictNestingEntity() {
    }

    public DistrictNestingEntity(DistrictEntity districtEntity) {
        this.setId(districtEntity.getId());
        this.setName(districtEntity.getName());
        this.setParentId(districtEntity.getParentId());
        this.setState(districtEntity.getState());
        this.setUpdateTime(districtEntity.getUpdateTime());
    }

    private List<DistrictNestingEntity> children;
}
